github.com/andybalholm/brotli.Writer.params (field)
44 uses
github.com/andybalholm/brotli (current package)
encode.go#L79: params encoderParams
encode.go#L115: return uint(1) << uint(s.params.lgblock)
encode.go#L540: sanitizeParams(&s.params)
encode.go#L541: s.params.lgblock = computeLgBlock(&s.params)
encode.go#L542: chooseDistanceParams(&s.params)
encode.go#L544: ringBufferSetup(&s.params, &s.ringbuffer_)
encode.go#L548: var lgwin int = int(s.params.lgwin)
encode.go#L549: if s.params.quality == fastOnePassCompressionQuality || s.params.quality == fastTwoPassCompressionQuality {
encode.go#L553: encodeWindowBits(lgwin, s.params.large_window, &s.last_bytes_, &s.last_bytes_bits_)
encode.go#L556: if s.params.quality == fastOnePassCompressionQuality {
encode.go#L611: encoderInitParams(&s.params)
encode.go#L715: var max_backward_distance uint64 = ((uint64(1)) << s.params.lgwin) - windowGap
encode.go#L725: var distance_code uint32 = commandRestoreDistanceCode(last_command, &s.params.dist)
encode.go#L774: if s.params.quality == fastTwoPassCompressionQuality {
encode.go#L784: if s.params.quality == fastOnePassCompressionQuality || s.params.quality == fastTwoPassCompressionQuality {
encode.go#L799: table = getHashTable(s, s.params.quality, uint(bytes), &table_size)
encode.go#L800: if s.params.quality == fastOnePassCompressionQuality {
encode.go#L829: initOrStitchToPreviousBlock(&s.hasher_, data, uint(mask), &s.params, uint(wrapped_last_processed_pos), uint(bytes), is_last)
encode.go#L831: literal_context_mode = chooseContextMode(&s.params, data, uint(wrapPosition(s.last_flush_pos_)), uint(mask), uint(s.input_pos_-s.last_flush_pos_))
encode.go#L837: if s.params.quality == zopflificationQuality {
encode.go#L838: assert(s.params.hasher.type_ == 10)
encode.go#L839: createZopfliBackwardReferences(uint(bytes), uint(wrapped_last_processed_pos), data, uint(mask), &s.params, s.hasher_.(*h10), s.dist_cache_[:], &s.last_insert_len_, &s.commands, &s.num_literals_)
encode.go#L840: } else if s.params.quality == hqZopflificationQuality {
encode.go#L841: assert(s.params.hasher.type_ == 10)
encode.go#L842: createHqZopfliBackwardReferences(uint(bytes), uint(wrapped_last_processed_pos), data, uint(mask), &s.params, s.hasher_, s.dist_cache_[:], &s.last_insert_len_, &s.commands, &s.num_literals_)
encode.go#L844: createBackwardReferences(uint(bytes), uint(wrapped_last_processed_pos), data, uint(mask), &s.params, s.hasher_, s.dist_cache_[:], &s.last_insert_len_, &s.commands, &s.num_literals_)
encode.go#L847: var max_length uint = maxMetablockSize(&s.params)
encode.go#L852: var should_flush bool = (s.params.quality < minQualityForBlockSplit && s.num_literals_+uint(len(s.commands)) >= maxNumDelayedSymbols)
encode.go#L890: writeMetaBlockInternal(data, uint(mask), s.last_flush_pos_, uint(metablock_size), is_last, literal_context_mode, &s.params, s.prev_byte_, s.prev_byte2_, s.num_literals_, s.commands, s.saved_dist_cache_[:], s.dist_cache_[:], &storage_ix, storage)
encode.go#L979: var block_size_limit uint = uint(1) << s.params.lgwin
encode.go#L983: if s.params.quality != fastOnePassCompressionQuality && s.params.quality != fastTwoPassCompressionQuality {
encode.go#L987: if s.params.quality == fastTwoPassCompressionQuality {
encode.go#L1028: table = getHashTable(s, s.params.quality, block_size, &table_size)
encode.go#L1030: if s.params.quality == fastOnePassCompressionQuality {
encode.go#L1119: if s.params.size_hint == 0 {
encode.go#L1130: s.params.size_hint = uint(total)
encode.go#L1162: if s.params.quality == fastOnePassCompressionQuality || s.params.quality == fastTwoPassCompressionQuality {
writer.go#L61: w.params.quality = w.options.Quality
writer.go#L63: w.params.lgwin = uint(w.options.LGWin)
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |